import request from '@/utils/request'
/*
考试记录
 */

/**
 * 获取考试记录列表
 * @param data
 * @returns {AxiosPromise}
 */

export function page(data) {
  return request({
    url: '/api/ts/examination_record/page',
    method: 'post',
    data
  })
}

/**
 * 获取学习记录
 * @param data
 * @returns {AxiosPromise}
 */
export function listLearnRecord(data) {
  return request({
    url: '/api/ts/learn_record/list_learn_record',
    method: 'post',
    data
  })
}
/**
 * 获取实操记录列表
 * @param data
 * @returns {AxiosPromise}
 */

export function listPracticeRecord(data) {
  return request({
    url: '/api/ts/practice_record/list_practice_record',
    method: 'post',
    data
  })
}

/**
 * 获取单个培训下的记录
 * @param data
 * @returns {AxiosPromise}
 */

export function listRecordByTrain(data) {
  return request({
    url: '/api/ts/train/list_record_by_train',
    method: 'post',
    data
  })
}

/**
 * 获取考试记录列表(有结构)
 * @param data
 * @returns {AxiosPromise}
 */

export function listExaminationRecord(data) {
  return request({
    url: '/api/ts/examination_record/list_examination_record',
    method: 'post',
    data
  })
}

/**
 * 获取考试记录列表(有结构)
 * @param data
 * @returns {AxiosPromise}
 */

export function listTrainClassify(data) {
  return request({
    url: '/api/ts/train/list_train_classify',
    method: 'post',
    data
  })
}

/**
 * 获取考试记录列表
 * @param data
 * @returns {AxiosPromise}
 */

export function save(data) {
  return request({
    url: '/api/ts/examination_record/save',
    method: 'post',
    data
  })
}

/**
 * 获取考试记录列表
 * @param data
 * @returns {AxiosPromise}
 */

export function getExaminationRecord(data) {
  return request({
    url: '/api/ts/examination_record/get_examination_record',
    method: 'post',
    data
  })
}

/**
 * 批改试卷
 * @param data
 * @returns {AxiosPromise}
 */

export function correctExaminationRecord(data) {
  return request({
    url: '/api/ts/examination_record/correct',
    method: 'post',
    data
  })
}

/**
 * 根据分类code加载培训数据：
 * @param data
 * @returns {AxiosPromise}
 */
export function listTrainByClassify(data) {
  return request({
    url: '/api/ts/train/list_train_by_classify',
    method: 'post',
    data
  })
}
/**
 * 根据分类code加载培训数据：
 * @param data
 * @returns {AxiosPromise}
 */
export function listMyTraining(data) {
  return request({
    url: '/api/ts/train/list_my_training',
    method: 'post',
    data
  })
}
/**
 * 我参与的层级数据
 * @param data
 * @returns {AxiosPromise}
 */
export function listParticipate(data) {
  return request({
    url: '/api/ts/train/list_participate',
    method: 'post',
    data
  })
}

/**
 * 我发起的查看人员
 * @param data
 * @returns {AxiosPromise}
 */
export function listReleaseUserByTrain(data) {
  return request({
    url: 'api/ts/train/list_release_user_by_train',
    method: 'post',
    data
  })
}
